import QtQuick 2.6
import Qt.labs.controls 1.0
import QtQuick.Layouts 1.1
import "../template" as Tm
import "../js/FeedbackNavigator.qml.js" as Jit
Tm.Navigator {
    id: nav
    title: "意见反馈"

    ColumnLayout {

        anchors.fill: parent
        anchors.margins: 9


        TextArea {
            id: textArea
            Layout.preferredWidth: parent.width * 0.9
            Layout.preferredHeight: parent.height / 3
            Layout.alignment: Qt.AlignHCenter
            textFormat: TextEdit.RichText
            placeholderText: qsTr("输入你的意见，我们将不断的优化体验")
            background: Rectangle {
                border.color: "forestgreen"
                radius: 3
            }

        }

        TextField {
            id: feedbackTxt
            Layout.preferredWidth: parent.width * 0.9
            Layout.alignment: Qt.AlignHCenter
            placeholderText: qsTr("输入手机号码，或者邮箱等联系方式")
            maximumLength:32
        }
        Item {
            Layout.fillHeight: true
        }

        Button {
            Layout.alignment: Qt.AlignCenter
            text: "提交"
            onClicked: Jit.commit()
            Layout.preferredWidth:  implicitWidth * 2
        }
    }

}
